package com.cskaoyan.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author stone
 * @date 2022/04/30 16:38
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    ConfigurableConversionService conversionService;

    @RequestMapping("hello")
    public String hello() {
        return "hello";
    }

    //localhost:8080/user/register?username=songge&birthday=2022-04-30
    @RequestMapping("register")
    public String register(String username, Date birthday) {
        return "ok";
    }
}
